package per.joker.boot.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.File;

/**
 * @author joker
 * @date 2022/5/17 0017 - 15:51
 */
@RestController
public class Handle01 {
    @RequestMapping("/hello")
    public String handle01(){
        String path = this.getClass().getClassLoader().getResource("").getPath();
        String path2 = this.getClass().getResource("/").getPath();
        File file = new File("");
        String path3 = file.getAbsolutePath();
        System.out.println(path);
        System.out.println(path2);
        System.out.println(path3);
        System.out.println("haha");
        return "hello!!!!";
    }
}
